package com.zx.idc.backend.gui.scheduler.report.operationlog;


import com.zx.idc.common.spring.SpringBeanUtil;
import com.zx.idc.ds.report.roperationlog.service.IROperationLogWeekService;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 操作日志统计周报Job
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class ROperationLogWeekJob implements Job{

    private static final Logger LOG = LoggerFactory.getLogger(ROperationLogWeekJob.class);

    @Autowired
    private IROperationLogWeekService operationLogWeekService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        LOG.info("Aggregate operation log weekly report job start...");
        operationLogWeekService.aggregate();
        LOG.info("Aggregate operation log weekly report job done.");
    }


}
